import request from "./request"; 

export const getPolicies= () => request({
    method:'get',
    url:'/policies/groups',
})

export const gainPolicies= (params) => request({
    method:'get',
    url:'/policies',
    params
})

export const addPolicies= (data) => request({
    method:'post',
    url:'/policies',
    data
})

export const delPolicies= (id) => request({
    method:'delete',
    url:`/policies/${id}`,
})

export const getPolicie= (id) => request({
    method:'get',
    url:`/policies/${id}`,
})

export const editPolicie= (id,data) => request({
    method:'put',
    url:`/policies/${id}`,
    data
})